package com.zg.service;

import com.zg.dao.DmDao;
import com.zg.entity.Dm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by zg on 2017/4/16.
 */
@Transactional
@Service
public class DataSourceService {

    @Autowired
    private DmDao dmDao;

    public List<Dm> list(){
        return dmDao.listTheme();
    }
}
